package com.woniuxy.oldmanapi.yvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.oldmanapi.entity.Older;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

@Data
public class LifeVo {
    private Integer id;
    private Integer olderId;
    private Older older;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gatherdatetime;
    private String lifecontent;
    private String careimg;
}
